<%template _header%>
<!--header end-->

<!--TheCurrent start-->
<div id="foruminfo">
	
	<div class="userinfo">
		<h2><a href="{Config.WebsiteUrl}" class="home">{Config.WebsiteTitle}</a>
			  <span><a href="Manage.aspx">用户中心</a></span>
			  <strong>患病基本信息</strong>
		</h2>
	</div>
	
	<div class="forumstats">
		<div id="search">
				<%template _quicksearch%>
		</div>
	</div>
	
</div>
<!--TheCurrent end-->

<script type="text/javascript">

	function checkpatientform()
	{
	      var f = $("patientform");
	      f.submit();
	}
	
	function SelectDisease()
	{
		window.open("../DiseaseSelector.aspx");
	}
	
		
</script>

<!--主体-->
<div class="controlpannel">
   <%template _memmenu%>
	<div class="pannelcontent">
		<div class="pcontent">
			<div class="panneldetail">
				<%template _mempatientmenu%>	
				<div class="pannelbody">
					<div class="pannellist">
					<%if ErrorCount==0%>
					
						<%if IsPost%>
						
							<%template _msgbox%>
							
						<%else%>
							
							 <%csharp%>if(IsRecordCreated) { <%/csharp%>
							 <p>
						     <a href="../ViewPatient.aspx?id={PRInfo.Id}" class="submitbutton">查看页面</a>&nbsp;&nbsp;
						   </p><br />
						   <%csharp%> } <%/csharp%>
							 
							  <form action="" method="post" ID="patientform">	
								<label for="diseasename">疾病:</label>
								<input name="diseasename" id="diseasename" 
								       type="text" class="colorblue" id="diseasename" 
								       onfocus="this.className='colorfocus';"
								       onblur="this.className='colorblue';"
								       value="{PRInfo.DiseaseName}"
								       readonly="true" size="20" />
								<input name="diseaseid" id="diseaseid" type="hidden" 
								      value="{PRInfo.DiseaseId}" />
								&nbsp;
								<%csharp%>if (IsRecordCreated == false) { <%/csharp%>
								<a href="#" onclick="SelectDisease();" >选择疾病</a>
								<%csharp%>} <%/csharp%>
								<span id="diseaseResult"></span>       
								<br />
								
								<label for="startdate">开始时间:</label>
								<input name="startdate" name="startdate"
								       type="text" class="colorblue" id="diseasename" 
								       onfocus="this.className='colorfocus';"
								       onblur="this.className='colorblue';"
								       value="{StartDate}"
								       size="20" />&nbsp;
								<br />
								
								<label for="enddate">结束时间:</label>
								<input name="enddate" name="enddate"
								       type="text" class="colorblue" id="diseasename" 
								       onfocus="this.className='colorfocus';"
								       onblur="this.className='colorblue';"
								       value="{EndDate}"
								       size="20" />&nbsp;
								<br />
								
								<label for="remark">备注:</label>
						    <textarea name="remark" cols="36" rows="6" id="bio" class="colorblue" 
						  	      onfocus="this.className='colorfocus';" onblur="this.className='colorblue';" 
						  	      style="width:80%;">{PRInfo.Remark}</textarea>
						    <br />
								
								<label for="Submit">&nbsp;</label>
								
								<input type="button" name="btnSubmit" value="确定" class="sbutton" 
								       ID="btnSubmit" onclick="checkpatientform();"/>
							
							 </form>	
						<%/if%>
						</div>
						
					<%else%>
						<%template _memerrmsgbox%>
					<%/if%>
					
			  </div>
			</div>
		</div>
	</div>
</div>
<!--主体-->
</div>
<%template _copyright%>
<%template _footer%>
